<?php
/**
 * Created on 7 mai 2011
 *  * @author Samy Deghou(deghou@polytech.unice.fr ; deghou@embl.de)
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
class Index_Home_View extends Main_Global_View {

	// attributs
	private $_actions;

	// constructeur
	public function Index_Home_View($args)
	{
		$this->_actions = $args["actions"];
	}

	// corps de page
	public function mainContent()
	{
		ob_start();

	?>
<?php
$file="Pajax";
if(class_exists($file)){
	echo "the class $file exists\n  </br>";
}else{
	echo "the class $file does not exists";
}

//$file="/var/www/chemistry-repository/chemistry-repository/trunk/main/webapp/Model/Test";
//$file="/home/epu/Bureau/Truc";
//if(class_exists($file)){
//	echo "the class $file exists";
//}else{
//	echo "the class $file does not exists";
//}
?>

<fieldset>
	<legend>Main of the page starts here</legend>
</fieldset>
<h1><center> Chemistry repository for in silico fragmentation</center></h1>
<p><b>-Generate the in silico fragmentation of a molecule?</b></p>
<input type="file" name="molfile" size="chars">(input a .mol file)
<br />
<p><b>-Store the experiment in the database?</b></p>
<form action="./index.php?controller=CmlSpecFile&action=insertIntoDatabase" method="post">
	</li>
	<input type="file" name="cmlfile" size="chars">(input a .cml file)
	 <input type="submit" /> 
	</ul>
</form>
<br />
<p><b>-Visualize the result of the experiment?</b></p>
<br />
<form action="./index.php?controller=Visualiser&action=visualise" method="post">
<p><b>-Visualize a molecule?</br></b>(input an id,name of molecule, experiment or spectra)</p>
<input type="text" name="moleculeIdentifier" />
<input type="submit" class="submit button" name="name" value="visualise this molecule" />
</form>

<form action="./index.php?controller=Visualiser&action=visualiseSample" method="post">
<p><b>-Visualize some sample experiment on the viewer??</br></b></p>
<input type="submit" class="submit button" name="name" value="visualise" />
</form>


	<?php
		$content=ob_get_contents();
		ob_end_clean();
		return $content;
	}

}
?>
